<?php
$script = 'var courseId = ' . intval($courseId) .';';
$script .= 'var listReviewUrl = "' . $this->Html->url(array('controller' => 'review', 'action' => 'index')) . '";';
$script .= 'var addReviewUrl = "' . $this->Html->url(array('controller' => 'review', 'action' => 'add')) . '";';
$script .= 'var deleteReviewUrl = "' . $this->Html->url(array('controller' => 'review', 'action' => 'delete')) . '";';
$this->Html->scriptBlock($script, array('inline' => false));
$this->Html->script('review.js', array('inline' => false));